package com.example.platosreports;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;

public class KISearch extends Activity {
	
	public final static String THIS_DATE ="test";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_kisearch);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.kisearch, menu);
		return true;
	}
	
	
	
	//Called when the user clicks the daily button
	public void KI(View view)
	{
		//do something in response to button
		Intent KIBtn = new Intent(this, KI.class);
		EditText editText = (EditText) findViewById(R.id.edit_message);
		String date = editText.getText().toString();
		KIBtn.putExtra(THIS_DATE, date);		
		startActivity(KIBtn);
	}


}
